Optimal. Leaf size=7 \[ -\frac {\cos (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3254, 2718}
\begin {gather*} -\frac {\cos (x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3254
Rubi steps
\begin {align*} \int \frac {\sin ^3(x)}{a-a \cos ^2(x)} \, dx &=\frac {\int \sin (x) \, dx}{a}\\ &=-\frac {\cos (x)}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 7, normalized size = 1.00 \begin {gather*} -\frac {\cos (x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 8, normalized size = 1.14
method | result | size |
derivativedivides | \(-\frac {\cos \left (x \right )}{a}\) | \(8\) |
default | \(-\frac {\cos \left (x \right )}{a}\) | \(8\) |
risch | \(-\frac {\cos \left (x \right )}{a}\) | \(8\) |
norman | \(\frac {\frac {2 \left (\tan ^{7}\left (\frac {x}{2}\right )\right )}{a}+\frac {2 \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{a}+\frac {4 \left (\tan ^{5}\left (\frac {x}{2}\right )\right )}{a}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{3} \tan \left (\frac {x}{2}\right )}\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 7, normalized size = 1.00 \begin {gather*} -\frac {\cos \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 7, normalized size = 1.00 \begin {gather*} -\frac {\cos \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 12 vs.
\(2 (5) = 10\).
time = 0.46, size = 12, normalized size = 1.71 \begin {gather*} - \frac {2}{a \tan ^{2}{\left (\frac {x}{2} \right )} + a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 7, normalized size = 1.00 \begin {gather*} -\frac {\cos \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.02, size = 7, normalized size = 1.00 \begin {gather*} -\frac {\cos \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________